<script src="{$base_js}/geral_interno.js"></script>
<form name="frm_del" id="frm_del" action="{$base_root}/Contato/Excluir" method="post">
<input type="hidden" id="pagina" name="pagina" value="{$pagina}" />
<table class="tableAdmlist" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <th colspan="7" class="titulo_topo">CONTATO</th>
        </tr>
        {if $msg neq NULL }
        <tr>
            <td colspan="7">
                {$msg}
            </td>
        </tr>
        {/if}
        {if $paginacao neq NULL}
        <tr>
            <td colspan="7" class="textoLeft" class="ExLink">
            {$paginacao}
            </td>
        </tr>
        {/if}
    <tr>
        <td colspan="7">
            <div class="buttons">
                <a href="{$base_root}/Contato/Adicionar{if $pagina neq 0}/pagina/{$pagina}{/if}" class="button add left" id="bt_adicionar">Adicionar</a><a href="#" class="button middle checked" id="checkall">Marcar</a><a href="#" class="button middle unchecked" id="uncheck">Desmarcar</a><a href="#" onclick="frm_del.submit();" class="button right delete">Remover</a> 
            </div>
        </td>
    </tr>
    <tr>
        <th class="titulo_topo" width="3%">ID</th>
        <th class="titulo_topo" width="12%">DATA</th>
        <th class="titulo_topo" width="8%">PUBLICADO</th>
        <th class="titulo_topo" width="60%" >E-MAIL PARA CONTATO</th>
        <th class="titulo_topo" width="5%" class="textoLeft">APAGAR</th>
    </tr>
    {if $contato neq NULL}
        {foreach from=$contato item=array name=ListarContato} 
<tr class="tr_noclass" id="tr_id_{$array.id}">
    <td>
    
        <input type="checkbox" name="checkbox[]" id="checkbox" value="{$array.id}" style="border:1px solid #ccc;" />
    
    </td>    
    <td class="textoCenter">
        <a href="{$base_root}/Contato/Editar/{$array.id}{if $pagina neq 0}/pagina/{$pagina}{/if}" class="item_td" title="Editar">
            {$array.data|date_format:"%d %b / %H:%M"}
        </a>
    </td>
    <td class="textoCenter">
    <a href="{$base_root}/Contato/Editar/{$array.id}{if $pagina neq 0}/pagina/{$pagina}{/if}" class="item_td" title="Editar">
    {if $array.status eq 1 }
        <span class='publicado'>Sim</span>
        {else}
        <span class='aguardando'>Não</span>
    {/if}
    </a>
    </td>
    
    <td class="textoCenter">
        <a href="{$base_root}/Contato/Editar/{$array.id}{if $pagina neq 0}/pagina/{$pagina}{/if}" class="item_td" title="Editar">
            {$array.email|utf8_encode}
        </a>
    </td>
    
    <td class="textoCenter">
        <div class="buttons" style="margin-left:8px;">
                <a href="{$base_root}/Contato/Excluir/{$array.id}{if $pagina neq 0}/pagina/{$pagina}{/if}" class="button trash">&nbsp;</a> 
        </div>
        <!--        
        <a href="{$base_root}/Contato/Excluir/{$array.id}{if $pagina neq 0}/pagina/{$pagina}{/if}" >
            <img src="{$base_image}/trash.png" title="Excluir" border="0" />
        </a>
        -->
    </td>
</tr>
    {/foreach}
    {else}
    <tr>
            <td colspan="6">N&atilde;o h&aacute; registros</td>
        </tr>
    {/if} 
    
</table>
</form>